package com.example.template.http.entity;

import com.example.base.http.ResponseData;

import java.util.List;


public class CommunityListData<T> extends ResponseData<CommunityListData.ListBean<T>> {

    public static class ListBean<T> {

        /** 总数 */
        private int totalRows;
        /** 数据 */
        private List<T> data;

        /**
         * 判断是否是最后一页
         */
        public boolean hasNext() {
            return totalRows > data.toArray().length;
        }

        public List<T> getItems() {
            return data;
        }
    }
}